package com.treetao.union.db.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.treetao.union.db.model.SysDict;

/**
 * <p>
 * 字典表 服务类
 * </p>
 */
public interface SysDictService extends IService<SysDict> {

    List<SysDict>  getDictByType(String type);

    Integer getCountByType(String type);

    Integer getMaxSortByType(String type);

    Integer getCountByAll(String type,String label,String value);

    void saveOrUpdateDict(SysDict dict);

    String deleteDict(Long id);

    List<SysDict> saveDictList(String type, List<SysDict> list);

    void deleteByType(String s);

    void deleteByTableName(String tableName);

    void updateByType(String oldType,String newType);

	SysDict getDict(String type, String value);
}
